package com.bdqn.crm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.crm.mapper.ProductMapper;
import com.bdqn.crm.pojo.Product;
import com.bdqn.crm.service.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product>
        implements ProductService {

    @Resource
    private ProductMapper productMapper;


    /**
     * 分页查询
     *
     * @param prodName
     * @param prodType
     * @param prodBatch
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @Override
    public List<Product> selectPages(String prodName, String prodType, String prodBatch, Integer pageIndex, Integer pageSize) {
        return productMapper.selectPages(prodName,prodType,prodBatch,pageIndex,pageSize);
    }
}




